package com.leo.ktvplayer.base

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.leo.ktvplayer.R

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        var x = 10;
        when(x) {
            20 -> print("123213");
            60 -> print("21321312");
            70 -> print("214321321");
            if (x > 10) 1 else -1 -> print("1232132");
        }
        var age : String? ="23";
        var name : Int ? = 12;


    }

    protected fun Data(name : String){

    }

    fun getUser(name : String): String {

        return "json";
    }

    override fun onDestroy() {
        super.onDestroy()
    }

}
